package com.aha.secondchapter.first;

/**
 * 队列
 * Created by wangxin on 2015/10/28.
 */
public class QQNumber {
    public static void main(String[] args) {
        int[] arr = new int[102];
        int[] numArr = {6,3,1,7,5,8,9,2,4};
        System.arraycopy(numArr,0,arr,0,numArr.length);
        int head = 0;
        int tail = numArr.length;
        while(head < tail) {
            //删除
            System.out.println(arr[head]);
            head++;
            arr[tail] = arr[head];
            head++;
            tail++;
        }
    }


}
